FROM python:3.12.3

RUN pip install gunicorn

WORKDIR app

COPY recruit recruit
COPY pyproject.toml pyproject.toml
COPY alembic.ini alembic.ini

RUN pip install -e .

CMD gunicorn "recruit.main:create_app()" --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000
